/**
 * @author Owen
 */
function wipeDiv(div){
	var wipeOut = dojo.fx.wipeOut({node: div,duration: 1000});
	var wipeIn = dojo.fx.wipeIn({node: div,duration: 1000});
	
	if(dojo.byId(div).style.display == "none"){
		wipeIn.play();
	}else{
		wipeOut.play();
	}
}

function chgText(div,string1,string2){
	var element = dojo.byId(div);
	if(element.innerHTML == string1){
		element.innerHTML = string2;
	}else{
		element.innerHTML = string1;
	}
}

function chgOtherText(div,str1,str2){
	chgText(div,str1,str2);
}

function chgImg(div,img1,img2){
	var element = dojo.byId(div);
	if(element.src.indexOf(img1) > 0){
		element.src = "./ui/v8/script/" + img2;
	}else{
		element.src = "./ui/v8/script/" + img1;
	}
}

function chgOtherImg(div,img1,img2){
	chgImg(div,img1,img2);
}

function showSubMenu(id){
	dojo.byId(id).style.display = 'block';
}
		
function hideSubMenu(id){
	dojo.byId(id).style.display = 'none';
}

function hideSubMenus(){
	hideSubMenu('sub1');
}
